package com.udp.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by sh04799 on 2017/10/24.
 */

public class MapEntity implements Serializable {
    // 交叉路口的经纬度
    private long lat;
    private long lon;
    private int id;// 交叉路口唯一id
    private int laneNumber;//车道编号
    private int laneWidth;
    private int laneAttributes;
    private List<PositionOffset> nodeList;// 表示该车道的路径 偏移量
    private String name;

    public MapEntity() {
    }

    public MapEntity(long lat, long lon, int id) {
        this.lat = lat;
        this.lon = lon;
        this.id = id;
    }

    public MapEntity(long lat, long lon, int id, int laneNumber, int laneWidth, int laneAttributes, List<PositionOffset> nodeList, String name) {
        this.lat = lat;
        this.lon = lon;
        this.id = id;
        this.laneNumber = laneNumber;
        this.laneWidth = laneWidth;
        this.laneAttributes = laneAttributes;
        this.nodeList = nodeList;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getLaneNumber() {
        return laneNumber;
    }

    public void setLaneNumber(int laneNumber) {
        this.laneNumber = laneNumber;
    }

    public int getLaneWidth() {
        return laneWidth;
    }

    public void setLaneWidth(int laneWidth) {
        this.laneWidth = laneWidth;
    }

    public int getLaneAttributes() {
        return laneAttributes;
    }

    public void setLaneAttributes(int laneAttributes) {
        this.laneAttributes = laneAttributes;
    }

    public List<PositionOffset> getNodeList() {
        return nodeList;
    }

    public void setNodeList(List<PositionOffset> nodeList) {
        this.nodeList = nodeList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getLat() {
        return lat;
    }

    public void setLat(long lat) {
        this.lat = lat;
    }

    public long getLon() {
        return lon;
    }

    public void setLon(long lon) {
        this.lon = lon;
    }

    @Override
    public String toString() {
        return "MapEntity{" +
                "lat=" + lat +
                ", lon=" + lon +
                ", id=" + id +
                ", laneNumber=" + laneNumber +
                ", laneWidth=" + laneWidth +
                ", laneAttributes=" + laneAttributes +
                ", nodeList=" + nodeList +
                ", name='" + name + '\'' +
                '}';
    }
}
